import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:lottie/lottie.dart';

import '../util.dart';

class EmptyView extends StatelessWidget {
  const EmptyView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        LottieBuilder.network(
          'https://assets1.lottiefiles.com/packages/lf20_MrIjH2.json',
          width: Get.width - 2 * gap12,
          fit: BoxFit.contain,
        ),
        SizedBox(
          height: 20.r,
        ),
        Text(
          '暂无数据',
          style: pfMediumStyle(color: ColorsUtil.content, fontSize: font13),
        ),
      ],
    );
  }
}
